﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ManageUserMember.aspx.cs"
    Inherits="HiViLicenseManage.ManageUserMember" Title="Quản lý người dùng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderBody" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width: 15%; float: left; margin-top: 5px;">
        Tìm kiếm</div>
    <div style="width: 85%; float: left; margin-top: 5px;">
        <asp:TextBox ID="txtSearch" runat="server" Width="180px"></asp:TextBox><asp:Button
            ID="btSearch" runat="server" Text="Tìm kiếm" OnClick="btSearch_Click" />
    </div>
    <br />
    <div style="width: 15%; float: left; margin-top: 5px;">
    </div>
    <div style="width: 85%; float: left; margin-top: 5px;">
        <asp:CheckBox ID="ckNotActive" runat="server" Checked="True" Text="Chỉ hiển thị tài khoản chưa active" />
    </div>
    <br />
    <div style="width: 25%; float: right; margin-top: 5px; text-align: right">
        <asp:DropDownList ID="drSort" runat="server" Height="26px" Width="123px" OnSelectedIndexChanged="drSort_SelectedIndexChanged"
            AutoPostBack="true">
            <asp:ListItem Value="DateCreated">Ngày đăng ký</asp:ListItem>
            <asp:ListItem Value="AgentID">Tên tài khoản</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div style="width: 75%; float: right; margin-top: 5px; text-align: right">
        Sắp xếp &nbsp&nbsp
    </div>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="width: 100%; float: right; margin-top: 5px;">
                <asp:GridView ID="gdvMember" runat="server" BackColor="White" BorderColor="#DEDFDE"
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Both"
                    AutoGenerateColumns="False" Width="100%" PageIndex="0" AllowPaging="True" OnPageIndexChanging="gdvMember_PageIndexChanging"
                    PageSize="12" Font-Size="8pt">
                    <RowStyle BackColor="#F7F7DE" />
                    <Columns>
                        <asp:TemplateField HeaderText="Tài khoản">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnLink" runat="server" Text='<%# Bind("AgentID") %>' OnClick="btnLink_Click"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Họ tên" DataField="AgentName" />
                        <asp:BoundField HeaderText="Email" DataField="Email" Visible="false" />
                        <asp:BoundField HeaderText="Công ty" DataField="Company" />
                        <asp:BoundField HeaderText="Ngày ĐK" DataField="DateCreated" DataFormatString="{0:dd/MM/yyyy}" />
                    </Columns>
                    <PagerStyle HorizontalAlign="Right" CssClass="GridPager" />
                    <FooterStyle BackColor="#CCCC99" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btSearch" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="drsort" EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
